<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .parent{
        width: 200px;
        height: 200px;
        background-color: red;
        position: relative;
    }
    .one{
        width: 100px;
        height: 150px;
        position: absolute;
        background-color: green;
    }
    .child{
        width: 150px;
        height: 50px;
        background-color: yellow;
        position: absolute;
        z-index: 3;
    }
</style>
<body>
    <div class="parent">
     <div class="child">
      child
     </div>
     <div class="one">

    </div>
    </div>
    
</body>
</html>